package top.xbaoziplus.company.service;

import top.xbaoziplus.company.common.CommonPage;
import top.xbaoziplus.company.common.Result;
import top.xbaoziplus.company.empty.UserInfo;
import top.xbaoziplus.company.empty.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface UserService extends IService<User> {
    /**
     * @description 判断员工是否存在
     * @author xBaozi
     * @date 9:13 2022/7/1
     * @param jobId 员工工号
     **/
    public boolean isExist(Long jobId);

    /**
     * @description 根据用户工号和密码进行登录
     * @author xBaozi
     * @date 9:17 2022/7/1
     * @param jobId     工号
     * @param password  密码
     **/
    public UserInfo findByJobIdAndPassword(Long jobId, String password);

    Result getAllPage(CommonPage commonPage, Integer type);
}
